﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObjects.BO_GetObjects;
using System.Data;

public partial class Controls_HomeNews : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.setField(Convert.ToInt32(this.Attributes["ID"]));
        if (!IsPostBack)
        {
            bindRepeater(rptSemilar, BO_portal_articles.SelectByModule(Mid, base.PSize));
            ObjDT = BO_portal_categories.Search(Cid);
            if (ObjDT.Rows.Count > 0)
            {
                mLink.HRef = "/c" + Cid + "/" + DigiLib.StringUtils.RemoveUnicode(ObjDT.Rows[0]["FULL_CATEGORY_NAME"].ToString(), "-") + ".html";
            }
        }
    }
}